#!/bin/bash
FROM=$1
TO=$2
filelist=`ls $FROM`
for file in $filelist
do 
if [ -f "$FROM/$file" ];then 
	echo file $FROM/$file, move to $TO/$file
	cp $FROM/$file $TO
else
	echo dir  $FROM/$file, move to $TO/$file
	if [ ! -d "$TO/$file" ];then
 		mkdir $TO/$file
 	fi
 	sh /usr/packagetools/mvfiles.sh $FROM/$file $TO/$file
fi
done

